package ace.oauth2.model.request;

import feign.form.FormProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author Caspar
 * @contract 279397942@qq.com
 * @create 2020/7/2 22:32
 * @description 创建 token 接口，自定义封装
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OAuth2CreateTokenRequest {
    /**
     * 用户唯一Id
     */
    @NotBlank
    private String accountId;
    /**
     * 租户id
     */
    @NotBlank
    private String tenantId;
}
